﻿using XQ.Net.SDK.Attributes;
using XQ.Net.SDK.EventArgs;
using XQ.Net.Test.UI;

[assembly: XQPlugin("XQ.Net.Test", "Heer", "1.0.0", "XQ.Net测试用插件")]

namespace XQ.Net.Test
{
    [Plugin]
    public class Class1
    {
        [GroupMsgEvent]
        public static void GroupMessage(object sender, XQAppGroupMsgEventArgs e)
        {
            //var m = Regex.Match(e.Message.Text, @"\[pic=(.*)\]");
            //if (m != null)
            //{
            //    XQAPI.OutPutLog(
            // XQ.Net.SDK.XQAPI.GetPicLink(e.RobotQQ, 2, e.FromGroup.Id, m.Value)
            //     );
            //}
            e.FromGroup.SendMsgEX(e.RobotQQ, e.Message.Text);
        }

        [PrivateMsgEvent]
        public static void PriMessage(object sender, XQAppPrivateMsgEventArgs e)
        {
            if (e.Message.Text.ToLower() == "Jie2GG".ToLower())
            {
                e.FromQQ.SendMsg(e.RobotQQ, "永远滴神");
            }
        }

        [CallMenu]
        public static void call(object sender, XQEventArgs e)
        {
            Caller.call();
        }
    }
}